import Vue from 'vue'
import Router from 'vue-router'
/*
import HelloWorld from '@/components/HelloWorld'
*/
import GoodLists from '../views/GoodLists'
import Image from '../views/Image'
import Title from '../views/Title'
import Cart from '../views/Cart'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/good',
            name: 'GoodLists',
            component: GoodLists,
            children: [
                {
                    path: 'image',
                    name: 'image',
                    component: Image,
                },
                {
                    path: 'title',
                    name: 'title',
                    component: Title,
                }
            ]
        }, {
            path: '/cart',
            name: 'cart',
            component: Cart,
        }
    ]
});
